<template>
    <CardBox title="TOP投放行业（近半年）">
        <Ranking :list="list.length>10?list.slice(0,10):list" :is-show-percent="true" />
    </CardBox>
</template>

<script lang="ts"  setup>
import { PropType } from 'vue';
import CardBox from './components/CardBox.vue';
import Ranking, { ListItem } from './components/Ranking.vue';

defineProps({
    list: {
        type: Array as PropType<ListItem[]>,
        require: true,
        default: () => [],
    },
});

</script>
